/*
 * Utils.java
 *
 * Created on September 6, 2005, 2:06 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */
package com.bff.mpd.utils;

import java.text.MessageFormat;
import java.util.ResourceBundle;

/**
 *
 * @author Bill
 */
public class Utils extends com.bff.bjj.utils.Utils {
    
    private static final ResourceBundle bundle =
            ResourceBundle.getBundle("resources/mpd/messages");

    /**
     * For internationalization
     * @param message
     * @return
     */
    public static String getMessage(String message) {
        return bundle.getString(message);
    }

    public static String getMessage(String message, Object[] params) {
        return MessageFormat.format(bundle.getString(message), params);
    }
}
